package com.paic.icore.test.demo.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

/**
 * describe:
 *
 * @author huxingjie
 * @date 2020/10/27
 * @since 5.0
 */
@Data
public class TimeSlot {
    @ApiModelProperty(name = "时间段开始")
    private String timeStart;

    @ApiModelProperty(name = "时间段结束")
    private String timeEnd;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TimeSlot timeSlot = (TimeSlot) o;
        return Objects.equals(timeStart, timeSlot.timeStart) &&
                Objects.equals(timeEnd, timeSlot.timeEnd);
    }

    @Override
    public int hashCode() {
        return Objects.hash(timeStart, timeEnd);
    }
}

    